//========================================================================================
//  
//  $File: //depot/indesign_CS5.5/source/sdksamples/basicshape/WilErrorStringService.cpp $
//  
//  Owner: Adobe Developer Technologies
//  
//  $Author: pmbuilder $
//  
//  $DateTime: 2010/02/23 03:46:08 $
//  
//  $Revision: #1 $
//  
//  $Change: 742150 $
//  
//  Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
//  
//  NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance 
//  with the terms of the Adobe license agreement accompanying it.  If you have received
//  this file from a source other than Adobe, then your use, modification, or 
//  distribution of it requires the prior written permission of Adobe.
//  
//========================================================================================

#include "VCPlugInHeaders.h"

// Interface includes:
// none.

// General includes:
#include "CErrorStringService.h"

// Project includes:
#include "WilID.h"

/** From SDK sample; Provides error string service for BasicShape that 
	maps this plug-in's ErrorCode's to error strings defined in the 
	UserErrorTable ODFRez statement in BscShp.fr.

	@ingroup basicshape
*/
class WilErrorStringService : public CErrorStringService
{
public:
	/** Constructor; this is where we specify the pluginID and the resourceID for the 
		UserErrorTable resource that is associated with this implementation.
		@param boss interface pointer from boss object on which this interface is aggregated.
	 */
	WilErrorStringService(IPMUnknown* boss):
		CErrorStringService(boss, kWilPluginID, kSDKDefErrorStringResourceID) {}

	/** Destructor 
	 */
	virtual ~WilErrorStringService(void) {}
};

/* Make the implementation available to the application.
*/
CREATE_PMINTERFACE(WilErrorStringService, kWilErrorStringServiceImpl)

// End, WilErrorStringService.cpp.
